package Work;

import java.time.LocalDateTime;
import java.util.Scanner;

public class Time {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true){

            System.out.println("请录入数据");

            String i = sc.next();

            if (i.equals("n")){

                break;

            }else {

                LocalDateTime now = LocalDateTime.now();

                System.out.println(now+"输入n退出");

            }
        }
    }
}
